 
import axios from "axios";

// 创建实例时配置默认值
const instance = axios.create({
    baseURL: 'http://43.138.81.225/demo/php',
    timeout: 5000,  
});

// 创建实例后修改默认值
instance.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded'; 

// instance.get()
// instance.post()

export default instance;  //默认暴露